<?php
if ($_SESSION[acesso_administrador]){
	echo"
			<script language='JavaScript' type='text/javascript' src='js/valida/valida_formularios.js'></script>
			<form name='form_cad_integrante' method='post' action='index.php?arquivo=cadastra_integrante.php' onsubmit='javascript: return validaCadIntegrante()'>
				
				<table class='conteudo' border='0' text-align='top' cellspacing='25' cellpading='2'>
					<tr><td><h2> CADASTRO DE INTEGRANTES </h2> </td> </tr> </table>

					<center> <table class='cadastro' border='1'>
					
					<tr>
						<td>Nome:</td>
						<td><input type='text' name='nome' size='60' maxlength='100'></td>
					</tr>
					<tr>
						<td>E-mail ou Lattes:</td>
						<td><input type='text' name='contato' size='60' maxlength='100'></td>
					</tr>
					<tr>
						<td>Tipo:</td>
						<td><input type='radio' name='tipo' value='0' checked>E-mail </input>
							<input type='radio' name='tipo' value='1'>Lattes </input></td>
					</tr>
                    <tr>
						<td>Status:</td>
						<td><input type='radio' name='status' value='0' Checked>Integrante
							<input type='radio' name='status' value='1'>Ex-Integrante</td>  
					</tr>
					<tr>
						<td>Curso:</td>
						<td><select name='curso' size='1'>
							<option value='0'>Selecione</option>
	";
								include('include/configuracoes.php');				
								$y = 0;
								$query = "SELECT * FROM curso";
								$resultado = mysql_query($query);
								while($campo = mysql_fetch_array($resultado)){
									$descricao[$y] = $campo['descricao'];
									$id_curso[$y] = $campo['id_curso'];
									echo"<option value='$id_curso[$y]'>$descricao[$y]</option>";
									$y++;
								}
	echo "
						</select></td>
					</tr>
					<tr>
						<<td colspan='2'><center><br><input type='button' value='Voltar' name='voltar' onClick='javascript:history.back(1)'>
						<input type='submit' name='cadastrar' value='Cadastrar'></center></td>
					</tr>
				</table></center><br><br>
			</form>
	";
}else{
	
}
?>
